package com.sua.mybatis.mapper;

import java.util.List;

import org.apache.ibatis.mapping.ResultMap;

import com.sua.mybatis.po.UserCustom;
import com.sua.mybatis.po.UserPO;
import com.sua.mybatis.po.UserQueryVo;

//测试package映射，并且建立复杂查询
public interface UserQueryMapper {
	public List<UserCustom> findUserList(UserQueryVo userQueryVo) throws Exception;
	//总数
	public int findUserCount(UserQueryVo userQueryVo) throws Exception;
	
	
	//resultMap
	public List<UserCustom> findUserByIdResultMap(UserQueryVo userQueryVo) throws Exception;

	
	public UserPO findUserById(int id) throws Exception;
	public List<UserPO> findUserByType(UserPO user) throws Exception;
	public List<UserPO> findUserByName(String name ) throws Exception;
	public void insertUser(UserPO user) throws Exception;
	public void deleteUser(int id) throws Exception;
	public void updateUser(UserPO user) throws Exception;
}
